from rest_framework.serializers import ModelSerializer
from myapp.models import *


class ShopSer(ModelSerializer):
    class Meta:
        model = Shop
        fields = '__all__'


class GoodsSer(ModelSerializer):
    class Meta:
        model = Goods
        fields = '__all__'


class ShowGoodsSer(ModelSerializer):
    shop = ShopSer()

    class Meta:
        model = Goods
        fields = '__all__'
